package com.dream.config;

import jdk.nashorn.internal.runtime.regexp.joni.constants.RegexState;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@Configuration                 // @Configuration  <==>  spring中applicationContent.xml
public class ConfigBean {
    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
